<template lang="html">
  <div v-if="confirmState">
    <confirm />
  </div>
  <div v-else>
    <noAgree />
  </div>
</template>

<script>
export default {
  components: {
    confirm:s => require.ensure([],()=>s(require('./agree/confirm')),'confirm'),
    noAgree:s => require.ensure([],()=>s(require('./agree/noAgree')),'noAgree')
  },
  data() {
    return{
      confirmState:false
    }
  },
  mounted() {
    let userId = this.$route.params.userId;
    console.log('noAgree',userId === '666');
    if(userId === '666') {
      this.confirmState = false
    }else{
      this.confirmState = true
    }
  }
}
</script>

<style lang="css">
</style>
